package com.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import com.mapper.AdminMapper;
import com.po.Admin;

import com.service.AdminService;
@Service("adminService")
public class AdminServiceImpl implements AdminService {
	@Autowired
	private AdminMapper mapper;

	@Override
	public Admin login(Admin admin) {
		return mapper.login(admin);
	}

	
	@Override
	public void update(Admin admin) {
		mapper.update(admin);
		
	}
	@Override
	public void add(Admin admin) {
		mapper.add(admin);
		
	}
	@Override
	public void del(int id) {
		mapper.del(id);
		
	}
	@Override
	public Admin findById(int id) {
		return mapper.findById(id);
	}


	@Override
	public java.util.List<Admin> List() {
		// TODO Auto-generated method stub
		return mapper.List();
	}

	
	//@Override
//	public PagingResult<Admin> List(PagingQuery query) {
		// TODO Auto-generated method stub
		//return mapper.List(query);
	//}
}
